% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  哈尔滨工程大学本硕博论文 XeLaTeX 模版 —— 书脊定义
%
%  版本：1.0.0
%  最后更新：
%  修改者：Leo LiWenhui lwh@hrbeu.edu.cn
%  修订者：
%  编译环境1：Ubuntu  + TeXLive 2021
%  编译环境2：Windows + TeXLive 2021
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}
\usepackage[paperwidth=22cm, paperheight=29.7cm,
            left=0cm, right=0cm, top=5cm, bottom=5cm]{geometry}
\usepackage{graphicx}
\usepackage[boldfont, slantfont, CJKnumber]{xeCJK}
\usepackage{metalogo}

% 设定竖排字体
\setmainfont{Times New Roman}
\setCJKmainfont{SimSun}
\setCJKfamilyfont{vert}[RawFeature={vertical}]{SimSun}

% 定义字体名称，可在此添加自定义的字体
\setCJKfamilyfont{vsong}[RawFeature={vertical}]{SimSun}
\setCJKfamilyfont{vhei}[RawFeature={vertical}]{SimHei}
\setCJKfamilyfont{vkai}[RawFeature={vertical}]{KaiTi}

%%---------------书脊内容定义--------------
%%---------- 你需要改动下面的变量 ----------

\providecommand{\thetitle}{\CJKfamily{vhei}{基于~\LaTeX~的哈尔滨工程大学本硕博论文模板使用说明}}
\providecommand{\theauthor}{\CJKfamily{vsong}{马冬梅}}
\providecommand{\theuniversity}{\CJKfamily{vsong}{哈尔滨工程大学博士学位论文}}


\pagestyle{empty}
\begin{document}

\flushright
\CJKfamily{vsong}\quad

\rotatebox{-90}{\thetitle}
\vfill
\vspace*{5em}\rotatebox{-90}{\theauthor}
\vfill
\rotatebox{-90}{\theuniversity}

\end{document}
